﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class PostingInformation : System.Web.UI.Page
{
    PostingDAO postDAO = new PostingDAO();
    protected void Page_Load(object sender, EventArgs e)
    {
        int postID = int.Parse(Request["PostingID"]);
        DataSet ds1 = postDAO.GetPostingInfoByPostingID(postID);
        if (ds1.Tables.Count > 0)
        {
            dtlPostingInfo.DataSource = ds1;
            dtlPostingInfo.DataBind();
        }

        foreach (DataListItem item in dtlPostingInfo.Items)
        {
            if (dtlPostingInfo.Items.Count > 0)
            {
                GridView grv = (GridView)item.FindControl("grv_Mark");
                //grv.DataSource = awardissuedDAO.Get_Award_Issued(competID);
                //grv.DataBind();


                //DataList dl = (DataList)item.FindControl("dtlMarkInfo");

                grv.DataSource = postDAO.getMarkByPostingID(postID);
                grv.DataBind();
            }
        }
    }
}